package com.shuai.user.service;


import javax.mail.MessagingException;

public interface EmailService {
    void sendCodeToUser(String toUser) throws MessagingException;

    String getEmailCode(String email);


    void removeEmailCode(String email);

    boolean validateEmailCode(String email, String code);
}
